package com.crrc.dataparse.entity;

import com.crrc.dataparse.util.IDGenerator;
import java.io.Serializable;
import java.util.List;

public class TemplatePara implements Serializable {
    private String plt_id;
    private String oid;
    private String parameterID;
    private String parameterName;
    private Integer parameterType;
    private Integer parameterTypeMC;
    private Integer length;
    private Integer parameterUnit;
    private Integer parameterUnitMC;
    private Float resolution;
    private Float offset;
    private Integer infoType;
    private String extension;
    private boolean bigEndianData;
    private List<TPara2Treat> tPara2TreatList;
    private Integer paraNum;

    public TemplatePara() {
        this.plt_id = IDGenerator.getPltID();
    }

    public boolean isBigEndianData() {
        return this.bigEndianData;
    }

    public void setBigEndianData(boolean bigEdianData) {
        this.bigEndianData = bigEdianData;
    }

    public TemplatePara(String plt_id, String oid, String parameterID, String parameterName, Integer parameterType, Integer parameterTypeMC, Integer length, Integer parameterUnit, Integer parameterUnitMC, float resolution, float offset, Integer infoType, String extension) {
        this.plt_id = plt_id;
        this.oid = oid;
        this.parameterID = parameterID;
        this.parameterName = parameterName;
        this.parameterType = parameterType;
        this.parameterTypeMC = parameterTypeMC;
        this.length = length;
        this.parameterUnit = parameterUnit;
        this.parameterUnitMC = parameterUnitMC;
        this.resolution = resolution;
        this.offset = offset;
        this.infoType = infoType;
        this.extension = extension;
    }

    public String getParameterName() {
        return this.parameterName;
    }

    public void setParameterName(String parameterName) {
        this.parameterName = parameterName;
    }

    public Integer getParameterType() {
        return this.parameterType;
    }

    public void setParameterType(Integer parameterType) {
        this.parameterType = parameterType;
    }

    public Integer getParameterTypeMC() {
        return this.parameterTypeMC;
    }

    public Integer getLength() {
        return this.length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getOid() {
        return this.oid;
    }

    public List<TPara2Treat> gettPara2TreatList() {
        return this.tPara2TreatList;
    }

    public void settPara2TreatList(List<TPara2Treat> tPara2TreatList) {
        this.tPara2TreatList = tPara2TreatList;
    }

    public String getParameterID() {
        return this.parameterID;
    }

    public void setParameterID(String parameterID) {
        this.parameterID = parameterID;
    }

    public Integer getParameterUnit() {
        return this.parameterUnit;
    }

    public void setParameterUnit(Integer parameterUnit) {
        this.parameterUnit = parameterUnit;
    }

    public Integer getParameterUnitMC() {
        return this.parameterUnitMC;
    }

    public float getResolution() {
        return this.resolution;
    }

    public void setResolution(Float resolution) {
        this.resolution = resolution;
    }

    public float getOffset() {
        return this.offset;
    }

    public void setOffset(Float offset) {
        this.offset = offset;
    }

    public Integer getInfoType() {
        return this.infoType;
    }

    public void setInfoType(Integer infoType) {
        this.infoType = infoType;
    }

    public String getExtension() {
        return this.extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }
    @Override
    public TemplatePara clone() {
        return new TemplatePara(this.plt_id, this.oid, this.parameterID, this.parameterName, this.parameterType, this.parameterTypeMC, this.length, this.parameterUnit, this.parameterUnitMC, this.resolution, this.offset, this.infoType, this.extension);
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public void setParameterTypeMC(Integer parameterTypeMC) {
        this.parameterTypeMC = parameterTypeMC;
    }

    public void setParameterUnitMC(Integer parameterUnitMC) {
        this.parameterUnitMC = parameterUnitMC;
    }

    public void setParaNum(Integer paraNum){this.paraNum = paraNum; }

    public Integer getParaNum(){return this.paraNum; }
}